package crm.controller;

import crm.pojo.BasDict;
import crm.service.BasDictMapperService;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;

@Controller
public class BasDictController {
    @Resource
    private BasDictMapperService basDictMapperService;

    @RequestMapping(value="/login")
    public String index(Model model){
        long num = 2;
        BasDict bt= basDictMapperService.selectByPrimaryKey(num);
        model.addAttribute("id",bt.getDictId());
        return "index";
    }
}
